/* 页面基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('../images/bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1100px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* 强烈的阴影效果 */
    box-sizing: border-box;
    text-align: center;
}

/* Header 样式 */
header {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #007BFF;
    color: #fff;
    border-radius: 12px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* 头像和用户信息部分 */
.profile-section {
    margin-bottom: 40px;
}

.profile-header {
    margin-bottom: 20px;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #007BFF; /* 蓝色边框 */
    margin-bottom: 15px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.profile-avatar:hover {
    transform: scale(1.1); /* 头像放大效果 */
}

.profile-details h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.profile-details p {
    font-size: 1.2rem;
    color: #555;
}

/* 个人资料部分 */
.profile-info {
    background-color: #fafafa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.profile-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #007BFF;
    margin-bottom: 20px;
    border-bottom: 3px solid #007BFF;
    padding-bottom: 10px;
}

.profile-info p {
    font-size: 1.1rem;
    color: #555;
    margin: 12px 0;
}

.profile-info strong {
    color: #333;
}

/* Footer 样式 */
footer {
    margin-top: 40px;
}

footer button {
    padding: 12px 25px;
    background-color: #FF4C4C;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

footer button:hover {
    background-color: #e13c3c;
    transform: scale(1.05); /* 按钮 hover 放大效果 */
}

/* 响应式设计：适配移动设备 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .profile-details h2 {
        font-size: 1.5rem;
    }

    .profile-info {
        padding: 20px;
    }

    .profile-info h3 {
        font-size: 1.6rem;
    }

    footer button {
        width: 100%;
        font-size: 1rem;
    }
}
